package na.learn.ejb2;

import java.rmi.RemoteException;
import java.util.Collection;

import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;

public interface ConsumerDetailsCMPHome extends EJBHome {

	public abstract ConsumerDetailsCMP create(Integer id, String name,
			Integer age, String number) throws CreateException, RemoteException;

	public abstract ConsumerDetailsCMP findByPrimaryKey(Integer id)
			throws FinderException, RemoteException;

	public abstract Collection findByConsumerName(String name)
			throws FinderException, RemoteException;

	public abstract Collection findByConsumerAge(Integer age)
			throws FinderException, RemoteException;

	public abstract Collection findByConsumerContactNumber(String address)
			throws FinderException, RemoteException;

}
